-- GENERATED SPELL FOR [Bloodscalp Shaman] --


function spell0_697(pUnit, Event) --@Enrage,Self--
pUnit:FullCastSpellOnTarget(8599,pUnit)
pUnit:RegisterEvent('Sorts_697', 550, 1)
end

function spell1_697(pUnit, Event) --@Fire Nova,Self--
pUnit:FullCastSpellOnTarget(11969,pUnit)
pUnit:RegisterEvent('Sorts_697', 2000, 1)
end

function spell2_697(pUnit, Event) --@Lightning Shield,n/a--
pUnit:FullCastSpellOnTarget(8788,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_697', 0, 1)
end

function Sorts_697(pUnit, Event)
local choix_sorts_697 = math.random(0, 2)
if choix_sorts_697 == 0 then
pUnit:RegisterEvent('spell0_697', 1, 1)
end
if choix_sorts_697 == 1 then
pUnit:RegisterEvent('spell1_697', 1, 1)
end
if choix_sorts_697 == 2 then
pUnit:RegisterEvent('spell2_697', 1, 1)
end
end

function mob697_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_697', math.random(1500, 3000), 1)
end

function mob697_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob697_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob697_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(697, 1, 'mob697_Action')
RegisterUnitEvent(697, 2, 'mob697_Leave')
RegisterUnitEvent(697, 3, 'mob697_Kill')
RegisterUnitEvent(697, 4, 'mob697_Die')
